from threading import Thread
from .process_id import get_id_list


class MyThread(Thread):
    def __init__(self, orin, type, target=None, args=()):
        Thread.__init__(self, target=target, args=args)
        self.orin = orin
        self.type = type

    def get_id_list(self):
        return get_id_list(orin=self.orin, type=self.type)
